package com.model;

import java.sql.Timestamp;

public class Email {
    private final Integer emailId;
    //邮件id

    private String sender;
    //发件人
    private String receiver;
    //收件人
    private String title;
    //邮件标题
    private String text;
    //正文
    private Timestamp time;
    //mysql时间，邮件收/发时间


    public Email(Integer messageId, String sender, String receiver, String title, String text, Timestamp time) {
        this.emailId = messageId;
        this.sender = sender;
        this.receiver = receiver;
        this.title = title;
        this.text = text;
        this.time = time;

    }
}
